# src

Click `Scripts.Rproj` to open an RStudio session and R project/workspace. 

Then run the code in `prep_data.Rmd` from that R session/project to do the preprocessing and generate the clean data files. This script reads data from `../data/raw` and saves clean data to `../data/clean`. 

Then run the code in `analyze_prereg.Rmd` to perform the preregistered analysis and the code in `analyze_discern_belief.Rmd` to perform analysis on truth discerment and false belief measures. This code reads data from `../data/clean` and saves figures to `../figures`.

Code in `analyze_prereg_exclude_inattentive.Rmd` and `analyze_discern_belief_exclude_inattentive.Rmd` can also be ran to perform analysis after excluding inattentive participants. This code also reads data from `../data/clean` and saves figures to `../figures`.

Code in `analyze_appendix_******.Rmd` files can be ran to perform the analyses mentioned in the appendices.